//    Copyright (C) Kherty.  All rights reserved.
using System;
using OpenLS.Core.Serialization;

namespace OpenLS.Chart
{
    public class DateValue: ValueBase
    {
        public DateValue(int index, DateTime val)
        {
            Index = index;
            Value = val;
        }
        internal override void ReadXmlCore(ReadContext context)
        {
            throw new NotSupportedException();
        }

        internal override void WriteXmlCore(WriteContext context)
        {
            throw new NotSupportedException();
        }

        private DateTime _value;
        public DateTime Value
        {
            get { return _value; }
            set
            {
                _value = value;
                notifyPropertyChanged("Value");
                notifyPropertyChanged("Tooltip");
            }
        }

    }
}
